Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: drop project_member (#12269)

p0ny104cbc65084f
diff --git a/backend/migrator/migration/prod/2.19/0002##drop_project_member.sql b/backend/migrator/migration/prod/2.19/0002##drop_project_member.sql
new file mode 100644
index 0000000000..952693f1f7
--- /dev/null
+++ b/backend/migrator/migration/prod/2.19/0002##drop_project_member.sql
@@ -0,0 +1 @@
+DROP TABLE IF EXISTS project_member;
diff --git a/backend/migrator/migration/prod/LATEST.sql b/backend/migrator/migration/prod/LATEST.sql
index 4490478a49..62f3061400 100644
--- a/backend/migrator/migration/prod/LATEST.sql
+++ b/backend/migrator/migration/prod/LATEST.sql
@@ -219,24 +219,6 @@ VALUES
ALTER SEQUENCE project_id_seq RESTART WITH 101;
--- Project member
-CREATE TABLE project_member (
- id SERIAL PRIMARY KEY,
- row_status row_status NOT NULL DEFAULT 'NORMAL',
- creator_id INTEGER NOT NULL REFERENCES principal (id),
- created_ts BIGINT NOT NULL DEFAULT extract(epoch from now()),
- updater_id INTEGER NOT NULL REFERENCES principal (id),
- updated_ts BIGINT NOT NULL DEFAULT extract(epoch from now()),
- project_id INTEGER NOT NULL REFERENCES project (id),
- role TEXT NOT NULL,
- principal_id INTEGER NOT NULL REFERENCES principal (id),
- condition JSONB NOT NULL DEFAULT '{}'
-);
-
-CREATE INDEX idx_project_member_project_id ON project_member(project_id);
-
-ALTER SEQUENCE project_member_id_seq RESTART WITH 101;
-
-- Project Hook
CREATE TABLE project_webhook (
id SERIAL PRIMARY KEY,
diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.go
index 72ce8bc17a..db991a4b48 100644
--- a/backend/migrator/migrator_test.go
+++ b/backend/migrator/migrator_test.go
@@ -230,5 +230,5 @@ func TestMigrationCompatibility(t *testing.T) {
func TestGetCutoffVersion(t *testing.T) {
releaseVersion, err := getProdCutoffVersion()
require.NoError(t, err)
- require.Equal(t, semver.MustParse("2.19.1"), releaseVersion)
+ require.Equal(t, semver.MustParse("2.19.2"), releaseVersion)
}