Masters and Transaction changes
This commit is contained in:
@@ -15,10 +15,10 @@ return new class extends Migration
|
||||
id BIGINT GENERATED always AS IDENTITY PRIMARY KEY,
|
||||
|
||||
code INT NOT NULL CHECK (code >= 1000) UNIQUE,
|
||||
company_id INT NOT NULL,
|
||||
company_id BIGINT NOT NULL,
|
||||
|
||||
name TEXT NOT NULL UNIQUE, -- CITEXT use extension
|
||||
address TEXT NOT NULL,
|
||||
name CITEXT NOT NULL UNIQUE, -- CITEXT use extension
|
||||
address CITEXT NOT NULL,
|
||||
|
||||
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
||||
@@ -26,7 +26,6 @@ return new class extends Migration
|
||||
|
||||
FOREIGN KEY (company_id) REFERENCES companies (id)
|
||||
);
|
||||
|
||||
SQL;
|
||||
|
||||
DB::statement($sql);
|
||||
|
||||
Reference in New Issue
Block a user