refactor: Rename tables
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
-- +goose Up
|
||||
create table if not exists service
|
||||
create table if not exists services
|
||||
(
|
||||
id bigserial primary key,
|
||||
name varchar(255) not null,
|
||||
@@ -11,4 +11,4 @@ create table if not exists service
|
||||
public boolean default false
|
||||
);
|
||||
-- +goose Down
|
||||
drop table if exists service;
|
||||
drop table if exists services;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
-- +goose Up
|
||||
create table status
|
||||
create table statuses
|
||||
(
|
||||
id bigserial primary key,
|
||||
service_id bigint,
|
||||
@@ -7,7 +7,8 @@ create table status
|
||||
created_at timestamp with time zone,
|
||||
description varchar(255),
|
||||
|
||||
constraint fk_service_statuses FOREIGN KEY (service_id) references service (id)
|
||||
constraint fk_service_statuses FOREIGN KEY (service_id) references services (id)
|
||||
);
|
||||
|
||||
-- +goose Down
|
||||
drop table if exists statuses;
|
||||
Reference in New Issue
Block a user