Skip to content

Commit

Permalink
Atualizando arquivo de sqitch
Browse files Browse the repository at this point in the history
  • Loading branch information
renatocron committed Oct 11, 2024
1 parent 3657bcb commit 3c29538
Show file tree
Hide file tree
Showing 36 changed files with 5,982 additions and 921 deletions.
5,960 changes: 5,943 additions & 17 deletions api/deploy_db/deploy/0001-db-init.sql

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions api/deploy_db/deploy/0002-configs.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
BEGIN;

insert into emaildb_config (id, "from", template_resolver_class, template_resolver_config, email_transporter_class, email_transporter_config, delete_after)
values (
'1',
'"Penhas" <[email protected]>', 'Shypper::TemplateResolvers::HTTP',
'{"base_url":"https://localhost:9000/static/html-templates"}',
'Email::Sender::Transport::SMTP::TLS',
'{"password":"XXXX","username":"XXXX","port":"587","host":"smtp.gmail.com"}', '25 years'
);

insert into penhas_config(name, value)
values
('AVATAR_ANONIMO_URL','https://localhost:9000/avatar/anonimo.svg'),
('AVATAR_PADRAO_URL','https://localhost:9000/avatar/padrao.svg');


insert into penhas_config(name, value) values ('CPF_CACHE_HASH_SALT', md5(md5(random()::text)));

insert into penhas_config (name,value) values ('ANON_QUIZ_SECRET', uuid_generate_v4()::text);

INSERT INTO preferences (name, label, active, initial_value, sort, admin_only)
VALUES ('POST_AS_PENHAS', 'Postar como PenhaS', TRUE, '0', 0, TRUE);
--

--insert into penhas_config (name,value,valid_from,valid_to)
--values ('AVATAR_ANONIMO_URL', 'https://localhost:9000/avatar/penhas_avatar.png', now(), 'infinity');

-- delete from penhas_config where "name"='AVATAR_PENHAS_URL';
insert into penhas_config (name,value,valid_from,valid_to)
values ('AVATAR_PENHAS_URL', 'https://localhost:9000/avatar/penhas_avatar.svg', now(), 'infinity');


COMMIT;
65 changes: 0 additions & 65 deletions api/deploy_db/deploy/0002-emaildb.sql

This file was deleted.

22 changes: 0 additions & 22 deletions api/deploy_db/deploy/0003-cpf2.sql

This file was deleted.

14 changes: 0 additions & 14 deletions api/deploy_db/deploy/0004-AVATAR_ANONIMO_URL.sql

This file was deleted.

28 changes: 0 additions & 28 deletions api/deploy_db/deploy/0005-chat.sql

This file was deleted.

9 changes: 0 additions & 9 deletions api/deploy_db/deploy/0006-has_message.sql

This file was deleted.

16 changes: 0 additions & 16 deletions api/deploy_db/deploy/0007-view_user_preferences.sql

This file was deleted.

49 changes: 0 additions & 49 deletions api/deploy_db/deploy/0008-postgis.sql

This file was deleted.

54 changes: 0 additions & 54 deletions api/deploy_db/deploy/0009-trigger-ponto-apoio-reindex.sql

This file was deleted.

11 changes: 0 additions & 11 deletions api/deploy_db/deploy/0010-fix-chat_support_message.sql

This file was deleted.

58 changes: 0 additions & 58 deletions api/deploy_db/deploy/0011-field-options.sql

This file was deleted.

Loading

0 comments on commit 3c29538

Please sign in to comment.