mirror of https://gitlab.com/ngerakines/tavern.git
Added missing columns to issue-21 migration.
This commit is contained in:
parent
70b3778e66
commit
70bde416ed
|
@ -215,22 +215,27 @@ func skeletonCommandAction(cliCtx *cli.Context) error {
|
|||
|
||||
var readmeFileContent strings.Builder
|
||||
for _, line := range []string{
|
||||
"#!/bin/sh",
|
||||
"",
|
||||
fmt.Sprintf(`docker-compose -f %s up -d db svger publisher`, dockerComposeFile),
|
||||
"sleep 30",
|
||||
fmt.Sprintf(`docker-compose -f %s run web migrate`, dockerComposeFile),
|
||||
"sleep 5",
|
||||
fmt.Sprintf(`docker-compose -f %s run web init --admin-email=nick.gerakines@gmail.com --admin-password=password --admin-name=nick`, dockerComposeFile),
|
||||
fmt.Sprintf(`docker-compose -f %s up -d`, dockerComposeFile),
|
||||
fmt.Sprintf(`docker-compose -f %s logs --tail=50 -f`, dockerComposeFile),
|
||||
} {
|
||||
readmeFileContent.WriteString(line)
|
||||
readmeFileContent.WriteString("\n")
|
||||
}
|
||||
|
||||
readmeLoc := filepath.Join(cliCtx.String("destination"), fmt.Sprintf("%sreadme.txt", prefix))
|
||||
readmeLoc := filepath.Join(cliCtx.String("destination"), fmt.Sprintf("%srun.sh", prefix))
|
||||
dbEnvLoc := filepath.Join(cliCtx.String("destination"), dbEnvFile)
|
||||
webEnvLoc := filepath.Join(cliCtx.String("destination"), webEnvFile)
|
||||
initSqlLoc := filepath.Join(cliCtx.String("destination"), initSqlFile)
|
||||
dcLoc := filepath.Join(cliCtx.String("destination"), dockerComposeFile)
|
||||
|
||||
err = ioutil.WriteFile(readmeLoc, []byte(readmeFileContent.String()), 0644)
|
||||
err = ioutil.WriteFile(readmeLoc, []byte(readmeFileContent.String()), 0744)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -1,17 +1,19 @@
|
|||
create table if not exists public.groups
|
||||
(
|
||||
id uuid not null
|
||||
id uuid not null
|
||||
constraint groups_pk primary key,
|
||||
created_at timestamp with time zone not null,
|
||||
updated_at timestamp with time zone not null,
|
||||
name varchar not null,
|
||||
public_key text not null,
|
||||
private_key text not null,
|
||||
display_name varchar not null,
|
||||
about text not null,
|
||||
accept_followers boolean default true not null,
|
||||
owner uuid not null,
|
||||
actor_id uuid not null,
|
||||
created_at timestamp with time zone not null,
|
||||
updated_at timestamp with time zone not null,
|
||||
name varchar not null,
|
||||
public_key text not null,
|
||||
private_key text not null,
|
||||
display_name varchar not null,
|
||||
about text not null,
|
||||
accept_followers boolean default true not null,
|
||||
default_member_role integer default 0 not null,
|
||||
allow_remote boolean default true not null,
|
||||
owner uuid not null,
|
||||
actor_id uuid not null,
|
||||
constraint groups_name_uindex
|
||||
unique (name)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue