diff --git a/db/migrations/20240427114541_add_self_to_nameservers.php b/db/migrations/20240427114541_add_self_to_nameservers.php new file mode 100644 index 0000000..2713e85 --- /dev/null +++ b/db/migrations/20240427114541_add_self_to_nameservers.php @@ -0,0 +1,37 @@ +table('domains', [ + 'id' => false, + 'primary_key' => ['id'], + 'engine' => 'InnoDB', + 'encoding' => 'utf8mb4', + 'collation' => 'utf8mb4_unicode_ci', + 'comment' => '', + 'row_format' => 'DYNAMIC', + ]) + ->removeColumn('self') + ->save(); + $this->table('nameservers', [ + 'id' => false, + 'primary_key' => ['id'], + 'engine' => 'InnoDB', + 'encoding' => 'utf8mb4', + 'collation' => 'utf8mb4_unicode_ci', + 'comment' => '', + 'row_format' => 'DYNAMIC', + ]) + ->addColumn('self', 'enum', [ + 'null' => false, + 'limit' => 3, + 'values' => ['yes', 'no'], + 'after' => 'apikey_prefix', + ]) + ->save(); + } +} diff --git a/public/openapi/bootstrap.php b/public/openapi/bootstrap.php new file mode 100644 index 0000000..e69de29